package com.mashibing.constant;


import lombok.Getter;


public enum CommonStatusEnum {

    // 验证码错误  1000 - 1099
    VERIFICATION_CODE_FAIL(1099,"验证码错误"),
    // token 错误 1100 - 1199
    TOKEN_ERROR(1199,"token错误"),
    // 用户不存在 1200 - 1299
    USER_NOT_EXIST(1299,"用户不存在"),
    SUCCESS(200,"success"),
    FAIL(500,"fail")
    ;
    @Getter
    private int code;
    @Getter
    private String message;

    CommonStatusEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }
}
